//-----Special Function Registers-----------//
#nolist

//#device PIC16C74A
//#nolist

#byte 	SSP2CON2 = 0xf62
#byte 	SSP2CON1 = 0xf63
#byte 	SSP2STAT = 0xf64
#byte 	SSPADD = 0xf65
#byte 	SSP2BUF = 0xf66
#byte 	ECCP2DEL = 0xf67
#byte 	ECCP2AS = 0xf68
#byte 	ECCP3DEL = 0xf69
#byte 	ECCP3AS = 0xf6a
#byte 	RCSTA2 = 0xf6b
#byte 	TXSTA2 = 0xf6c
#byte 	TXREG2 = 0xf6d
#byte 	RCREG2 = 0xf6e
#byte 	SPBRG2 = 0xf6f

#byte 	CCP5CON = 0xf70
#byte 	CCPR5L = 0xf71
#byte 	CCPR5H = 0xf72
#byte 	CCP4CON = 0xf73
#byte 	CCPR4L = 0xf74
#byte 	CCPR4H = 0xf75
#byte 	T4CON = 0xf76
#byte 	PR4 = 0xf77
#byte 	TMR4 = 0xf78
#byte 	ECCP1DEL = 0xf79
#byte 	BAUDCON2 = 0xf7c
#byte 	SPBRGH2 = 0xf7d
#byte 	BAUDCON1 = 0xf7e
#byte 	SPBRGH1 = 0xf7f

#byte 	PORTA = 0xf80
#byte 	PORTB = 0xf81
#byte 	PORTC = 0xf82
#byte 	PORTD = 0xf83
#byte 	PORTE = 0xf84
#byte 	PORTF = 0xf85
#byte 	PORTG = 0xf86
#byte 	PORTH = 0xf87
#byte 	PORTJ = 0xf88
#byte 	LATA = 0xf89
#byte 	LATB = 0xf8a
#byte 	LATC = 0xf8b
#byte 	LATD = 0xf8c
#byte 	LATE = 0xf8d
#byte 	LATF = 0xf8e
#byte 	LATG = 0xf8f

#byte 	LATH = 0xf90
#byte 	LATJ = 0xf91
#byte 	TRISA = 0xf92
#byte 	TRISB = 0xf93
#byte 	TRISC = 0xf94
#byte 	TRISD = 0xf95
#byte 	TRISE = 0xf96
#byte 	TRISF = 0xf97
#byte 	TRISG = 0xf98
#byte 	TRISH = 0xf99
#byte 	TRISJ = 0xf9a
#byte 	OSCTUNE = 0xf9b
#byte 	MEMCON = 0xf9c
#byte 	PIE1 = 0xf9d
#byte 	PIR1 = 0xf9e
#byte 	IPR1 = 0xf9f

#byte 	PIE2 = 0xfa0
#byte 	PIR2 = 0xfa1
#byte 	IPR2 = 0xfa2
#byte 	PIE3 = 0xfa3
#byte 	PIR3 = 0xfa4
#byte 	IPR3 = 0xfa5
#byte 	EECON1 = 0xfa6
#byte 	EECON2 = 0xfa7
#byte 	EEDATA = 0xfa8
#byte 	EEADR = 0xfa9
#byte 	EEADRH = 0xfaa
#byte 	RCSTA1 = 0xfab
#byte 	TXSTA1 = 0xfac
#byte 	TXREG1 = 0xfad
#byte 	RCREG1 = 0xfae
#byte 	SPBRG1 = 0xfaf

#byte 	PSPCON = 0xfb0
#byte 	T3CON = 0xfb1
#byte 	TMR3L = 0xfb2
#byte 	TMR3H = 0xfb3
#byte 	CMCON = 0xfb4
#byte 	CVRCON = 0xfb5
#byte 	ECCP1AS = 0xfb6
#byte 	CCP3CON = 0xfb7
#byte 	CCPR3L = 0xfb8
#byte 	CCPR3H = 0xfb9
#byte 	CCP2CON= 0xfba
#byte 	CCPR2L = 0xfbb
#byte 	CCPR2H = 0xfbc
#byte 	CCP1CON= 0xfbd
#byte 	CCPR1L = 0xfbe
#byte 	CCPR1H = 0xfbf

#byte 	ADCON2 = 0xfc0
#byte 	ADCON1 = 0xfc1
#byte 	ADCON0 = 0xfc2
#byte 	ADRESL = 0xfc3
#byte 	ADRESH = 0xfc4
#byte 	SSP1CON2 = 0xfc5
#byte 	SSP1CON1 = 0xfc6
#byte 	SSP1STAT = 0xfc7
#byte 	SSP1ADD = 0xfc8
#byte 	SSP1BUF = 0xfc9
#byte 	T2CON = 0xfca
#byte 	PR2 = 0xfcb
#byte 	TMR2 = 0xfcc
#byte 	T1CON = 0xfcd
#byte 	TMR1L = 0xfce
#byte 	TMR1H = 0xfcf

#byte 	RCON = 0xfd0
#byte 	WDTCON = 0xfd1
#byte 	HLVDCON = 0xfd2
#byte 	OSCCON = 0xfd3
#byte 	T0CON = 0xfd5
#byte 	TMR0L = 0xfd6
#byte 	TMR0H = 0xfd7
#byte 	STATUS = 0xfd8
#byte 	FSR2L = 0xfd9
#byte 	FSR2H = 0xfda
#byte 	PLUSW2 = 0xfdb
#byte 	PREINC2 = 0xfdc
#byte 	POSTDEC2 = 0xfdd
#byte 	POSTINC2 = 0xfde
#byte 	INDF2 = 0xfdf

#byte 	BSR = 0xfe0
#byte 	FSR1L = 0xfe1
#byte 	FSR1H = 0xfe2
#byte 	PLUSW1 = 0xfe3
#byte 	PREINC1 = 0xfe4
#byte 	POSTDEC1 = 0xfe5
#byte 	POSTINC1 = 0xfe6
#byte 	INDF1 = 0xfe7
#byte 	WREG = 0xfe8
#byte 	FSR0L = 0xfe9
#byte 	FSR0H = 0xfea
#byte 	PLUSW0 = 0xfeb
#byte 	PREINC0 = 0xfec
#byte 	POSTDEC0 = 0xfed
#byte 	POSTINC0 = 0xfee
#byte 	INDF0 = 0xfef

#byte 	INTCON3 = 0xff0
#byte 	INTCON2 = 0xff1
#byte 	INTCON = 0xff2
#byte 	PRODL = 0xff3
#byte 	PRODH = 0xff4
#byte 	TABLAT = 0xff5
#byte 	TBLPRTL = 0xff6
#byte 	TBLPTRH = 0xff7
#byte 	TBLPTRU = 0xff8
#byte 	PCL = 0xff9
#byte 	PCLATH = 0xffa
#byte 	PCLATU = 0xffb
#byte 	STKPTR = 0xffc
#byte 	TOSL = 0xffd
#byte 	TOSH = 0xffe
#byte 	TOSU = 0xfff

//-----STATUS bits----------------

#bit N   = STATUS.4
#bit OV  = STATUS.3
#bit Z   = STATUS.2
#bit DC  = STATUS.1
#bit C   = STATUS.0

//---- INTCON bits -------------------------

#bit GIE    = INTCON.7
#bit PEIE   = INTCON.6
#bit TMR0IE = INTCON.5
#bit INT0IE = INTCON.4
#bit RBIE   = INTCON.3
#bit TMR0IF = INTCON.2
#bit INT0F  = INTCON.1
#bit RBIF   = INTCON.0

//---- PIE1 bits ---------------------------

#bit PSPIE  = PIE1.7
#bit ADIE   = PIE1.6
#bit RC1IE  = PIE1.5
#bit TX1IE  = PIE1.4
#bit SSPIE  = PIE1.3
#bit CCP1IE = PIE1.2
#bit TMR2IE = PIE1.1
#bit TMR1IE = PIE1.0

//---- PIR1 bits ---------------------------

#bit PSPIF  = PIR1.7
#bit ADIF   = PIR1.6
#bit RC1IF   = PIR1.5
#bit TX1IF   = PIR1.4
#bit SSPIF  = PIR1.3
#bit CCP1IF = PIR1.2
#bit TMR2IF = PIR1.1
#bit TMR1IF = PIR1.0

//---- IPR1 bits ---------------------------

#bit PSPIP  = IPR1.7
#bit ADIP   = IPR1.6
#bit RC1IP   = IPR1.5
#bit TX1IP   = IPR1.4
#bit SSPIP  = IPR1.3
#bit CCP1IP = IPR1.2
#bit TMR2IP = IPR1.1
#bit TMR1IP = IPR1.0

//---- INTCON2 bits -------------------------

#bit RBPU = INTCON2.7
#bit INTEDG0 = INTCON2.6
#bit INTEDG1 = INTCON2.5
#bit INTEDG2 = INTCON2.4
#bit INTEDG3 = INTCON2.3
#bit TMR0IP = INTCON2.2
#bit INT3IP = INTCON2.1
#bit RBIP = INTCON2.0

//---- PIE2 bits ---------------------------

#bit OSCFIE = PIE2.7
#bit CMIE = PIE2.6
#bit EEIE = PIE2.4
#bit BCL1IE = PIE2.3
#bit HLVDIE = PIE2.2
#bit TMR3IE = PIE2.1
#bit CCP2IE = PIE2.0

//---- PIR2 bits ---------------------------------

#bit OSCFIF = PIR2.7
#bit CMIF = PIR2.6
#bit EEIF = PIR2.4
#bit BCL1IF = PIR2.3
#bit HLVDIF = PIR2.2
#bit TMR3IF = PIR2.1
#bit CCP2IF = PIR2.0

//---- IPR2 bits ---------------------------------

#bit OSCFIP = IPR2.7
#bit CMIP = IPR2.6
#bit EEIP = IPR2.4
#bit BCL1IP = IPR2.3
#bit HLVDIP = IPR2.2
#bit TMR3IP = IPR2.1
#bit CCP2IP = IPR2.0

//---- INTCON3 bits -------------------------

#bit INT2IP = INTCON3.7
#bit INT1IP = INTCON3.6
#bit INT3IE = INTCON3.5
#bit INT2IE = INTCON3.4
#bit INT1IE = INTCON3.3
#bit INT3IF = INTCON3.2
#bit INT2IF = INTCON3.1
#bit INT1IF = INTCON3.0

//---- PIE3 bits ---------------------------

#bit SSP2IE = PIE3.7
#bit BCL2IE = PIE3.6
#bit RC2IE = PIE3.5
#bit TX2IE = PIE3.4
#bit TMR4IE = PIE3.3
#bit CCP5IE = PIE3.2
#bit CCP4IE = PIE3.1
#bit CCP3IE = PIE3.0

//---- PIR3 bits ---------------------------------

#bit SSP2IF = PIR3.7
#bit BCL2IF = PIR3.6
#bit RC2IF = PIR3.5
#bit TX2IF = PIR3.4
#bit TMR4IF = PIR3.3
#bit CCP5IF = PIR3.2
#bit CCP4IF = PIR3.1
#bit CCP3IF = PIR3.0

//---- IPR3 bits ---------------------------------

#bit SSP2IP = IPR3.7
#bit BCL2IP = IPR3.6
#bit RC2IP = IPR3.5
#bit TX2IP = IPR3.4
#bit TMR4IP = IPR3.3
#bit CCP5IP = IPR3.2
#bit CCP4IP = IPR3.1
#bit CCP3IP = IPR3.0

//---- T0CON bits -------------------------

#bit PS0    = T0CON.0
#bit PS1    = T0CON.1
#bit PS2    = T0CON.2
#bit PSA    = T0CON.3
#bit T0SE   = T0CON.4
#bit T0CS   = T0CON.5
#bit T08BIT = T0CON.6
#bit TMR0ON   = T0CON.7

//---- T1CON bits --------------------------

#bit TMR1ON  = T1CON.0
#bit TMR1CS  = T1CON.1
#bit T1SYNC  = T1CON.2
#bit T1OSCEN = T1CON.3
#bit T1CKPS0 = T1CON.4
#bit T1CKPS1 = T1CON.5
#bit RD16 = T1CON.7

//---- T2CON bits --------------------------

#bit T2CKPS0 = T2CON.0
#bit T2CKPS1 = T2CON.1
#bit TMR2ON  = T2CON.2
#bit TOUTPS0 = T2CON.3
#bit TOUTPS1 = T2CON.4
#bit TOUTPS2 = T2CON.5
#bit TOUTPS3 = T2CON.6

//---- T3CON bits --------------------------

#bit TMR3ON  = T3CON.0
#bit TMR3CS  = T3CON.1
#bit T3SYNC  = T3CON.2
#bit T3CCP1  = T3CON.3
#bit T3CKPS0 = T3CON.4
#bit T3CKPS1 = T3CON.5
#bit T3CCP2  = T3CON.6

//---- SSP2CON1 bits -------------------------

#bit SSPM0 = SSP2CON1.0
#bit SSPM1 = SSP2CON1.1
#bit SSPM2 = SSP2CON1.2
#bit SSPM3 = SSP2CON1.3
#bit CKP   = SSP2CON1.4
#bit SSPEN = SSP2CON1.5
#bit SSPOV = SSP2CON1.6
#bit WCOL  = SSP2CON1.7

//---- SSP2CON2 bits -------------------------

#bit SEN	= SSP2CON2.0
#bit RSEN	= SSP2CON2.1
#bit PEN	= SSP2CON2.2
#bit RCEN	= SSP2CON2.3
#bit ACKEN	= SSP2CON2.4
#bit ACKDT	= SSP2CON2.5
#bit ACKSTAT = SSP2CON2.6
#bit GCEN	= SSP2CON2.7



//---- CCP1CON bits ------------------------

#bit CCP1M0 = CCP1CON.0
#bit CCP1M1 = CCP1CON.1
#bit CCP1M2 = CCP1CON.2
#bit CCP1M3 = CCP1CON.3
#bit DC1B0  = CCP1CON.4
#bit DC1B1  = CCP1CON.5

//---- CCP2CON bits ------------------------

#bit CCP2M0 = CCP2CON.0
#bit CCP2M1 = CCP2CON.1
#bit CCP2M2 = CCP2CON.2
#bit CCP2M3 = CCP2CON.3
#bit DC2B0  = CCP2CON.4
#bit DC2B1  = CCP2CON.5

//---- RCON bits ---------------------------

#bit BOR = RCON.0
#bit POR = RCON.1
#bit PD = RCON.2
#bit TO = RCON.3
#bit RI = RCON.4
#bit SBOREN = RCON.6
#bit IPEN = RCON.7


//---- SSP2STAT bits ------------------------

#bit BF  = SSP2STAT.0
#bit UA  = SSP2STAT.1
#bit RW  = SSP2STAT.2
#bit S   = SSP2STAT.3
#bit P   = SSP2STAT.4
#bit DA  = SSP2STAT.5
#bit CKE   = SSP2STAT.6
#bit SMP  = SSP2STAT.7

//---- ADCON0 bits -------------------------

#bit ADON    = ADCON0.0
#bit GODONE  = ADCON0.1
#bit CHS0    = ADCON0.2
#bit CHS1    = ADCON0.3
#bit CHS2    = ADCON0.4
#bit CHS3    = ADCON0.5

//---- ADCON1 bits -------------------------

#bit PCFG0 = ADCON1.0
#bit PCFG1 = ADCON1.1
#bit PCFG2 = ADCON1.2
#bit PCFG3 = ADCON1.3
#bit VCFG0 = ADCON1.4
#bit VCFG1 = ADCON1.5

// ----- PORTA bits ------------------------

#bit PORTA0 = PORTA.0
#bit PORTA1 = PORTA.1
#bit PORTA2 = PORTA.2
#bit PORTA3 = PORTA.3
#bit PORTA4 = PORTA.4
#bit PORTA5 = PORTA.5
#bit PORTA6 = PORTA.6
#bit PORTA7 = PORTA.7

// ----- TRISA bits ------------------------

#bit TRISA0 = TRISA.0
#bit TRISA1 = TRISA.1
#bit TRISA2 = TRISA.2
#bit TRISA3 = TRISA.3
#bit TRISA4 = TRISA.4
#bit TRISA5 = TRISA.5
#bit TRISA6 = TRISA.6
#bit TRISA7 = TRISA.7

// ----- LATA bits ------------------------

#bit LATA0 = LATA.0
#bit LATA1 = LATA.1
#bit LATA2 = LATA.2
#bit LATA3 = LATA.3
#bit LATA4 = LATA.4
#bit LATA5 = LATA.5
#bit LATA6 = LATA.6
#bit LATA7 = LATA.7

// ----- PORTB bits ------------------------

#bit PORTB0 = PORTB.0
#bit PORTB1 = PORTB.1
#bit PORTB2 = PORTB.2
#bit PORTB3 = PORTB.3
#bit PORTB4 = PORTB.4
#bit PORTB5 = PORTB.5
#bit PORTB6 = PORTB.6
#bit PORTB7 = PORTB.7

// ----- TRISB bits ------------------------

#bit TRISB0 = TRISB.0
#bit TRISB1 = TRISB.1
#bit TRISB2 = TRISB.2
#bit TRISB3 = TRISB.3
#bit TRISB4 = TRISB.4
#bit TRISB5 = TRISB.5
#bit TRISB6 = TRISB.6
#bit TRISB7 = TRISB.7

// ----- LATB bits ------------------------

#bit LATB0 = LATB.0
#bit LATB1 = LATB.1
#bit LATB2 = LATB.2
#bit LATB3 = LATB.3
#bit LATB4 = LATB.4
#bit LATB5 = LATB.5
#bit LATB6 = LATB.6
#bit LATB7 = LATB.7

// ----- PORTC bits ------------------------

#bit PORTC0 = PORTC.0
#bit PORTC1 = PORTC.1
#bit PORTC2 = PORTC.2
#bit PORTC3 = PORTC.3
#bit PORTC4 = PORTC.4
#bit PORTC5 = PORTC.5
#bit PORTC6 = PORTC.6
#bit PORTC7 = PORTC.7

// ----- TRISC bits ------------------------

#bit TRISC0 = TRISC.0
#bit TRISC1 = TRISC.1
#bit TRISC2 = TRISC.2
#bit TRISC3 = TRISC.3
#bit TRISC4 = TRISC.4
#bit TRISC5 = TRISC.5
#bit TRISC6 = TRISC.6
#bit TRISC7 = TRISC.7

// ----- LATC bits ------------------------

#bit LATC0 = LATC.0
#bit LATC1 = LATC.1
#bit LATC2 = LATC.2
#bit LATC3 = LATC.3
#bit LATC4 = LATC.4
#bit LATC5 = LATC.5
#bit LATC6 = LATC.6
#bit LATC7 = LATC.7

// ----- PORTD bits ------------------------

#bit PORTD0 = PORTD.0
#bit PORTD1 = PORTD.1
#bit PORTD2 = PORTD.2
#bit PORTD3 = PORTD.3
#bit PORTD4 = PORTD.4
#bit PORTD5 = PORTD.5
#bit PORTD6 = PORTD.6
#bit PORTD7 = PORTD.7

// ----- TRISD bits ------------------------

#bit TRISD0 = TRISD.0
#bit TRISD1 = TRISD.1
#bit TRISD2 = TRISD.2
#bit TRISD3 = TRISD.3
#bit TRISD4 = TRISD.4
#bit TRISD5 = TRISD.5
#bit TRISD6 = TRISD.6
#bit TRISD7 = TRISD.7

// ----- LATD bits ------------------------

#bit LATD0 = LATD.0
#bit LATD1 = LATD.1
#bit LATD2 = LATD.2
#bit LATD3 = LATD.3
#bit LATD4 = LATD.4
#bit LATD5 = LATD.5
#bit LATD6 = LATD.6
#bit LATD7 = LATD.7

// ----- PORTE bits ------------------------

#bit PORTE0 = PORTE.0
#bit PORTE1 = PORTE.1
#bit PORTE2 = PORTE.2
#bit PORTE3 = PORTE.3
#bit PORTE4 = PORTE.4
#bit PORTE5 = PORTE.5
#bit PORTE6 = PORTE.6
#bit PORTE7 = PORTE.7

//---- TRISE bits --------------------------

#bit TRISE0  = TRISE.0
#bit TRISE1  = TRISE.1
#bit TRISE2  = TRISE.2
#bit TRISE3  = TRISE.3
#bit TRISE4  = TRISE.4
#bit TRISE5  = TRISE.5
#bit TRISE6  = TRISE.6
#bit TRISE7  = TRISE.7

// ----- LATE bits ------------------------

#bit LATE0 = LATE.0
#bit LATE1 = LATE.1
#bit LATE2 = LATE.2
#bit LATE3 = LATE.3
#bit LATE4 = LATE.4
#bit LATE5 = LATE.5
#bit LATE6 = LATE.6
#bit LATE7 = LATE.7

// ----- PORTF bits ------------------------

#bit PORTF0 = PORTF.0
#bit PORTF1 = PORTF.1
#bit PORTF2 = PORTF.2
#bit PORTF3 = PORTF.3
#bit PORTF4 = PORTF.4
#bit PORTF5 = PORTF.5
#bit PORTF6 = PORTF.6
#bit PORTF7 = PORTF.7

//---- TRISF bits --------------------------

#bit TRISF0  = TRISF.0
#bit TRISF1  = TRISF.1
#bit TRISF2  = TRISF.2
#bit TRISF3  = TRISF.3
#bit TRISF4  = TRISF.4
#bit TRISF5  = TRISF.5
#bit TRISF6  = TRISF.6
#bit TRISF7  = TRISF.7

// ----- LATF bits ------------------------

#bit LATF0 = LATF.0
#bit LATF1 = LATF.1
#bit LATF2 = LATF.2
#bit LATF3 = LATF.3
#bit LATF4 = LATF.4
#bit LATF5 = LATF.5
#bit LATF6 = LATF.6
#bit LATF7 = LATF.7

// ----- PORTG bits ------------------------

#bit PORTG0 = PORTG.0
#bit PORTG1 = PORTG.1
#bit PORTG2 = PORTG.2
#bit PORTG3 = PORTG.3
#bit PORTG4 = PORTG.4
#bit PORTG5 = PORTG.5

//---- TRISG bits --------------------------

#bit TRISG0  = TRISG.0
#bit TRISG1  = TRISG.1
#bit TRISG2  = TRISG.2
#bit TRISG3  = TRISG.3
#bit TRISG4  = TRISG.4
#bit TRISG5  = TRISG.5

// ----- LATG bits ------------------------

#bit LATG0 = LATG.0
#bit LATG1 = LATG.1
#bit LATG2 = LATG.2
#bit LATG3 = LATG.3
#bit LATG4 = LATG.4
#bit LATG5 = LATG.5

// ----- PORTH bits ------------------------

#bit PORTH0 = PORTH.0
#bit PORTH1 = PORTH.1
#bit PORTH2 = PORTH.2
#bit PORTH3 = PORTH.3
#bit PORTH4 = PORTH.4
#bit PORTH5 = PORTH.5
#bit PORTH6 = PORTH.6
#bit PORTH7 = PORTH.7

//---- TRISH bits --------------------------

#bit TRISH0  = TRISH.0
#bit TRISH1  = TRISH.1
#bit TRISH2  = TRISH.2
#bit TRISH3  = TRISH.3
#bit TRISH4  = TRISH.4
#bit TRISH5  = TRISH.5
#bit TRISH6  = TRISH.6
#bit TRISH7  = TRISH.7

// ----- LATH bits ------------------------

#bit LATH0 = LATH.0
#bit LATH1 = LATH.1
#bit LATH2 = LATH.2
#bit LATH3 = LATH.3
#bit LATH4 = LATH.4
#bit LATH5 = LATH.5
#bit LATH6 = LATH.6
#bit LATH7 = LATH.7

// ----- PORTJ bits ------------------------

#bit PORTJ0 = PORTJ.0
#bit PORTJ1 = PORTJ.1
#bit PORTJ2 = PORTJ.2
#bit PORTJ3 = PORTJ.3
#bit PORTJ4 = PORTJ.4
#bit PORTJ5 = PORTJ.5
#bit PORTJ6 = PORTJ.6
#bit PORTJ7 = PORTJ.7

//---- TRISJ bits --------------------------

#bit TRISJ0  = TRISJ.0
#bit TRISJ1  = TRISJ.1
#bit TRISJ2  = TRISJ.2
#bit TRISJ3  = TRISJ.3
#bit TRISJ4  = TRISJ.4
#bit TRISJ5  = TRISJ.5
#bit TRISJ6  = TRISJ.6
#bit TRISJ7  = TRISJ.7

// ----- LATJ bits ------------------------

#bit LATJ0 = LATJ.0
#bit LATJ1 = LATJ.1
#bit LATJ2 = LATJ.2
#bit LATJ3 = LATJ.3
#bit LATJ4 = LATJ.4
#bit LATJ5 = LATJ.5
#bit LATJ6 = LATJ.6
#bit LATJ7 = LATJ.7

// ----- RCSTA1 bits ------------------------

#bit SPEN1 = RCSTA1.7
#bit CREN = RCSTA1.4
#bit OERR = RCSTA1.1

#bit SPEN2 = RCSTA2.7
#bit CREN2 = RCSTA2.4
#bit OERR2 = RCSTA2.1

// ----- WDTCON bits ------------------------

#bit SWDTEN = WDTCON.0

#list
